<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <a class="navbar-brand" href="#"><img src="/images/logo.png" alt="logo" width="120"></a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item">
                <a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{:url('index/reserve')}">Reserve</a>
            </li>
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    brief
                </a>
                <div class="dropdown-menu" aria-labelledby="navbarDropdown1">
                    <a class="dropdown-item" href="{:url('index/pic',['name'=>'photo'])}">photographie du site</a>
                    <a class="dropdown-item" href="{:url('index/pic',['name'=>'material'])}">material</a>
                    <a class="dropdown-item" href="{:url('index/pic',['name'=>'catering'])}">catering</a>
                    <a class="dropdown-item" href="{:url('index/pic',['name'=>'hotel'])}">hotel</a>
                </div>
            </li>

            <!--<li class="nav-item dropdown">-->
                <!--<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown4" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">-->
                    <!--预约-->
                <!--</a>-->
                <!--<div class="dropdown-menu" aria-labelledby="navbarDropdown4">-->
                    <!--<a class="dropdown-item" href="#">滑雪套房</a>-->
                    <!--<a class="dropdown-item" href="#">滑雪小屋出租</a>-->
                    <!--<a class="dropdown-item" href="#">滑雪设备出租</a>-->
                    <!--<a class="dropdown-item" href="#">预约活动计划</a>-->
                <!--</div>-->
            <!--</li>-->
        </ul>



        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" href="{:url('home/carts')}">Cart</a>
            </li>
        {if is_login() === false}

            <li class="nav-item">
                <a class="nav-link" href="{:url('account/login')}">Login</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{:url('account/reg')}">Register</a>
            </li>

        {else /}
            <li class="nav-item">
                <a class="nav-link" href="{:url('home/orders')}">Orders</a>
            </li>
            {if get_level() == 1}
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown9" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    Admin
                </a>
                <div class="dropdown-menu" aria-labelledby="navbarDropdown9">
                    <a class="dropdown-item" href="{:url('admin/users')}">Manage Users</a>
                    <a class="dropdown-item" href="{:url('admin/skiingparks')}">Manage Skiing park</a>
                </div>
            </li>
            {/if}
            <li class="nav-item">
                <a class="nav-link" href="{:url('home/logout')}">Logout</a>
            </li>

        {/if}
        </ul>
    </div>
</nav>